/*
 * @Description: 
 * @Autor: Bingo
 * @Date: 2024-05-11 09:24:35
 * @LastEditors: Bingo
 * @LastEditTime: 2024-07-25 15:52:47
 */
import { createApp } from "vue";
import { createPinia } from 'pinia'
import '@vant/touch-emulator';
// 1. 引入你需要的组件
import 'vant/lib/index.css';
import "./style.less";
import './utils/rem'
import App from "./App.vue";
import router from "./route";
import { registerVantComp } from "./config/vantComp";
// 注册全局组件
import { registerPublicComp } from "./config/publicComp";
import { globalConfig } from "./config/globalConf";
import VueStoragePlugin from 'vue-ls';
import { registerDirective } from "./directives";
const ls = VueStoragePlugin.useStorage({
    namespace: 'pro__', 
    name: 'ls',
    storage: 'local',
})
const app = createApp(App);
app.use(router)
// pinia 类似vuex 用于深层组件交互
app.use(createPinia())
registerVantComp(app)
registerPublicComp(app)
registerDirective(app)
app.config.globalProperties.ls = ls;
window.ls = ls
globalConfig(app)
app.mount("#app");
